<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="db.DbLanguages"%>
<%@page import="db.DbDictionaries"%><link href="fluid.css" media="screen" type="text/css" rel="stylesheet">
<link href="css/uportal3.css" media="screen" type="text/css" rel="stylesheet">
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<script type="text/javascript" src='/${requestScope.contextPath}/scripts/common.js' ></script>
<script type="text/javascript" src='/${requestScope.contextPath}/scripts/jquery-1.4.2.js' ></script>

<form name="<portlet:namespace/>LookUpWord" action="<portlet:actionURL/>" method="POST">
<input name="eventId" type="hidden" />
<input name="screenId" type="hidden" value="searchword"/> 
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" bgcolor="#66CCFF" height="22">
<tr>
<td><p align="left">Hello: Guest</td>
<td>
<p align="right">
<input name="btnContribute" value="Contribute" style="width: 83;height:25" onclick='submitAction("<portlet:namespace/>", "LookUpWord", "contribute");' type="button" />
<input name="btnLogin" value="login" style="width: 83;height:25" onclick='submitAction("<portlet:namespace/>","LookUpWord", "login");' type="button"/>
</td>
</tr>
</table>

<table width=100%>
<tbody>
<tr>
<td>
<input name="mode" onclick="changeMode('S01LookupWord','DICT_MODE')" type="radio" value="1">Language Mode
<input name="mode" onclick="changeMode('S01LookupWord','DICT_MODE')" type="radio" checked value="dict">Dictionary Mode
<table>
<tbody>
<tr>
<td>
<div id="modeshowed" align="left">
<table>
						<tbody><tr>
							<td>
								<table>
									<tbody><tr>
										<td align="right">From:</td>
									</tr>
									<tr>
										<td align="right">To:</td>
									</tr>
								</tbody></table>
							</td>
							<td>
								<table>
									<tbody><tr>
										<td align="left">
    <select style="width: 150px;" name="slFrom">
        <%out.print(DbLanguages.getLangListHTML()); %>
    </select></td>
									</tr>
									<tr>
										<td align="left">
                                        
    <select style="width: 150px;" name="slTo">
        <%out.print(DbLanguages.getLangListHTML()); %>
    </select></td>
									</tr>
								</tbody></table>
							</td>
							<td>
								&nbsp;</td>
						</tr>
						
					</tbody>
                    
                    </table>
</div>
</td>
</tr>

</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
<td align="right">Word:</td>
</tr>
</tbody>
</table>
</td>
<td>
<table>
<tbody>
<tr>
<td align="right">
<input name="txtWord" autocomplete="off" value="${result.txtWord }" style="width: 145px;"type="text">
<input name="btnTranslate" value="Translate" style="width: 85;height:25" onclick='submitAction("<portlet:namespace/>","LookUpWord", "translate");' type="button">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td></td>

<td><table><tbody><tr><td align="right"><div id="wordList"><table><tbody><tr>
<td valign="top">
<select name="slWordList" style="width: 150;height:225" size="10" onchange="onSelChange('OnlineStardict_StardictPortlet_OnlineStardict_StardictPortlet','HomePage')">
<option value="91363">tech</option>
<option value="91364">techie</option>
<option value="91365">techily</option>
<option value="91366">techiness</option>
<option value="91367">technetium</option>
<option value="91368">technic</option>
<option value="91369">technical</option>
<option value="91370">Technical change through R&amp;D</option>
<option value="91371">technical college</option>
<option value="91372">Technical efficiency</option>
</select>
</td>
<td valign="top" width="100%"><div align=left>

<pre><font color="red">${result.txtmeaning }
</font>

</pre>

</div>
<div align="right">
<pre><a href="#">PLAYSOUND</a></pre>
</div>
</td></tr></tbody></table>
</div></td></tr></tbody></table></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td height="36">&nbsp;
</td>
</tr>
</tbody></table>

</form>

